package com.xidian.yunwudemo.service;

import com.xidian.yunwudemo.dto.ConfigInfoDto;
import com.xidian.yunwudemo.dto.ServerInfoDto;
import com.xidian.yunwudemo.entities.ConfigInfo;
import com.xidian.yunwudemo.entities.ServerInfo;

import java.util.List;

public interface ServiceControlService {
    ServerInfoDto getServerInfo(String name);
    boolean stopServerOneByOne(String name);
    List<ConfigInfoDto> getConfigByName(String name);
    List<Integer> authStatus(String name);
    boolean saveConfig(List<ConfigInfoDto> configInfos,String group);
    boolean saveUserConfig(List<ConfigInfo> configInfos);
    boolean saveBioConfig(List<ConfigInfo> configInfos);
    // 根据name获取servicePort
    ServerInfoDto getPortByName(String name);
}
